import { requestClient } from './request';

// 获取图像信息的 API
export const getImageInfo = async (startDate: string, endDate: string, page: number, pageSize: number) => {
    try {
        const response = await requestClient.get('/image_info', {
            params: {
                start_date: startDate,
                end_date: endDate,
                page,
                page_size: pageSize,
            },
        });
        // console.log('response.data:', response);
        return response; // 返回数据

    } catch (error) {
        console.error('获取图像信息失败:', error);
        throw error;
    }
}; 